# -*- coding：utf-8 -*-
# &Author  AnFany

# 24局的三国华容道题目

# 按照'曹操', '关羽', '张飞', '赵云', '马超', '黄忠', '兵1', '兵2', '兵3', '兵4'的顺序
# [2, 0], 2, 2]表示关羽所占的左下角的位置为2行0列。关羽占的高度为2，宽度也为2

K_SIGN = {1: '横刀立马1', 2: '横刀立马2', 3: '齐头并前', 4: '兵分三路', 5: '屯兵东路',
          6: '左右步兵', 7: '前挡后阻', 8: '插翅难飞', 9: '近在咫尺', 10: '层层设防',
          11: '水泄不通', 12: '小燕出巢', 13: '兵挡将阻', 14: '过五关', 15: '一夫当关',
          16: '一字长蛇', 17: '四面楚歌', 18: '比翼横空', 19: '兵临曹营', 20: '逃之夭夭',
          21: '网开一面', 22: '羊肠小道', 23: '壁垒森严', 24: '横眉立目', }


K_DICT = {'横刀立马1': [[[2, 1], 2, 2], [[3, 1], 1, 2], [[2, 0], 2, 1], [[2, 3], 2, 1], [[4, 0], 2, 1], [[4, 3], 2, 1],
                    [[5, 0], 1, 1], [[5, 3], 1, 1], [[4, 1], 1, 1], [[4, 2], 1, 1]],

          '横刀立马2': [[[2, 1], 2, 2], [[3, 1], 1, 2], [[2, 0], 2, 1], [[2, 3], 2, 1], [[5, 0], 2, 1], [[5, 3], 2, 1],
                    [[3, 0], 1, 1], [[3, 3], 1, 1], [[4, 1], 1, 1], [[4, 2], 1, 1]],

          '齐头并前': [[[2, 1], 2, 2], [[4, 1], 1, 2], [[2, 0], 2, 1], [[2, 3], 2, 1], [[5, 0], 2, 1], [[5, 3], 2, 1],
                   [[3, 0], 1, 1], [[3, 1], 1, 1], [[3, 2], 1, 1], [[3, 3], 1, 1]],

          '兵分三路': [[[2, 1], 2, 2], [[3, 1], 1, 2], [[3, 0], 2, 1], [[3, 3], 2, 1], [[5, 0], 2, 1], [[5, 3], 2, 1],
                   [[1, 0], 1, 1], [[1, 3], 1, 1], [[4, 1], 1, 1], [[4, 2], 1, 1]],

          '屯兵东路': [[[2, 0], 2, 2], [[3, 0], 1, 2], [[2, 2], 2, 1], [[2, 3], 2, 1], [[5, 0], 2, 1], [[5, 1], 2, 1],
                   [[3, 2], 1, 1], [[3, 3], 1, 1], [[4, 2], 1, 1], [[4, 3], 1, 1]],

          '左右步兵': [[[2, 1], 2, 2], [[5, 1], 1, 2], [[2, 0], 2, 1], [[2, 3], 2, 1], [[4, 1], 2, 1], [[4, 2], 2, 1],
                   [[4, 0], 1, 1], [[4, 3], 1, 1], [[5, 0], 1, 1], [[5, 3], 1, 1]],

          '前挡后阻': [[[2, 0], 2, 2], [[1, 2], 1, 2], [[5, 1], 1, 2], [[4, 0], 2, 1], [[3, 2], 2, 1], [[4, 1], 2, 1],
                   [[4, 2], 1, 1], [[4, 3], 1, 1], [[3, 3], 1, 1], [[2, 3], 1, 1]],

          '插翅难飞': [[[2, 1], 2, 2], [[5, 0], 1, 2], [[5, 2], 1, 2], [[2, 0], 2, 1], [[4, 1], 2, 1], [[2, 3], 2, 1],
                   [[3, 0], 1, 1], [[4, 0], 1, 1], [[3, 3], 1, 1], [[4, 3], 1, 1]],

          '近在咫尺': [[[5, 2], 2, 2], [[3, 0], 1, 2], [[4, 0], 1, 2], [[2, 1], 2, 1], [[2, 2], 2, 1], [[2, 3], 2, 1],
                   [[1, 0], 1, 1], [[2, 0], 1, 1], [[3, 2], 1, 1], [[3, 3], 1, 1]],

          '层层设防': [[[2, 1], 2, 2], [[3, 2], 1, 2], [[4, 2], 1, 2], [[5, 1], 1, 2], [[4, 0], 2, 1], [[4, 1], 2, 1],
                   [[1, 0], 1, 1], [[2, 0], 1, 1], [[1, 3], 1, 1], [[2, 3], 1, 1]],

          '水泄不通': [[[2, 0], 2, 2], [[1, 2], 1, 2], [[2, 2], 1, 2], [[3, 2], 1, 2], [[4, 0], 2, 1], [[4, 1], 2, 1],
                   [[5, 0], 1, 1], [[4, 2], 1, 1], [[4, 3], 1, 1], [[5, 3], 1, 1]],

          '小燕出巢': [[[2, 1], 2, 2], [[4, 1], 1, 2], [[3, 0], 1, 2], [[3, 2], 1, 2], [[2, 0], 2, 1], [[2, 3], 2, 1],
                   [[4, 0], 1, 1], [[4, 3], 1, 1], [[5, 0], 1, 1], [[5, 3], 1, 1]],

          '兵挡将阻': [[[2, 1], 2, 2], [[4, 1], 1, 2], [[3, 1], 1, 2], [[5, 1], 1, 2], [[3, 0], 2, 1], [[3, 3], 2, 1],
                   [[1, 0], 1, 1], [[1, 3], 1, 1], [[4, 0], 1, 1], [[4, 3], 1, 1]],

          '过五关': [[[2, 1], 2, 2], [[5, 1], 1, 2], [[4, 0], 1, 2], [[4, 2], 1, 2], [[3, 0], 1, 2], [[3, 2], 1, 2],
                  [[1, 0], 1, 1], [[1, 3], 1, 1], [[2, 0], 1, 1], [[2, 3], 1, 1]],

          '一夫当关': [[[2, 0], 2, 2], [[4, 1], 2, 1], [[1, 2], 1, 2], [[2, 2], 1, 2], [[3, 2], 1, 2], [[4, 2], 1, 2],
                   [[3, 0], 1, 1], [[4, 0], 1, 1], [[5, 0], 1, 1], [[5, 1], 1, 1]],

          '一字长蛇': [[[2, 0], 2, 2], [[4, 2], 2, 1], [[4, 0], 1, 2], [[3, 0], 1, 2], [[1, 2], 1, 2], [[2, 2], 1, 2],
                   [[5, 2], 1, 1], [[3, 3], 1, 1], [[4, 3], 1, 1], [[5, 3], 1, 1]],

          '四面楚歌': [[[3, 1], 2, 2], [[4, 1], 1, 2], [[1, 0], 1, 2], [[5, 0], 2, 1], [[3, 0], 2, 1], [[3, 3], 2, 1],
                   [[1, 2], 1, 1], [[1, 3], 1, 1], [[4, 3], 1, 1], [[5, 3], 1, 1]],

          '比翼横空': [[[2, 2], 2, 2], [[1, 0], 1, 2], [[2, 0], 1, 2], [[3, 0], 1, 2], [[3, 2], 1, 2], [[5, 3], 2, 1],
                   [[4, 0], 1, 1], [[4, 2], 1, 1], [[5, 0], 1, 1], [[5, 2], 1, 1]],

          '兵临曹营': [[[2, 1], 2, 2], [[3, 1], 1, 2], [[4, 0], 2, 1], [[4, 3], 2, 1], [[5, 1], 2, 1], [[5, 2], 2, 1],
                   [[1, 0], 1, 1], [[2, 0], 1, 1], [[1, 3], 1, 1], [[2, 3], 1, 1]],

          '逃之夭夭': [[[2, 0], 2, 2], [[5, 1], 1, 2], [[4, 0], 1, 2], [[4, 2], 1, 2], [[1, 2], 1, 2], [[2, 2], 1, 2],
                   [[3, 0], 1, 1], [[3, 1], 1, 1], [[3, 2], 1, 1], [[3, 3], 1, 1]],

          '网开一面': [[[2, 2], 2, 2], [[5, 3], 2, 1], [[2, 0], 1, 2], [[3, 0], 1, 2], [[4, 0], 1, 2], [[3, 2], 1, 2],
                   [[5, 0], 1, 1], [[5, 1], 1, 1], [[5, 2], 1, 1], [[4, 2], 1, 1]],

          '羊肠小道': [[[3, 1], 2, 2], [[5, 3], 2, 1], [[5, 0], 2, 1], [[5, 1], 2, 1], [[1, 0], 1, 2], [[1, 2], 1, 2],
                  [[2, 0], 1, 1], [[2, 3], 1, 1], [[3, 0], 1, 1], [[3, 3], 1, 1]],

          '壁垒森严': [[[3, 1], 2, 2], [[1, 1], 1, 2], [[5, 0], 2, 1], [[5, 1], 2, 1], [[5, 2], 2, 1], [[5, 3], 2, 1],
                  [[2, 0], 1, 1], [[2, 3], 1, 1], [[3, 0], 1, 1], [[3, 3], 1, 1]],

          '横眉立目': [[[2, 1], 2, 2], [[3, 2], 1, 2], [[5, 1], 2, 1], [[5, 0], 2, 1], [[2, 3], 2, 1], [[2, 0], 2, 1],
                   [[3, 0], 1, 1], [[3, 1], 1, 1], [[4, 2], 1, 1], [[4, 3], 1, 1]]}
